package com.sojson.util.token;

import java.util.Set;

import com.sojson.entity.po.Member;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * Token
 * 
 * @author liu
 * @date 2021-03-16
 */
@ApiModel("Token")
public class TokenVo extends Token {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("续期天数")
    private Integer dayGoOn;
    @ApiModelProperty("角色ID")
    private Integer roleId;
    @ApiModelProperty("验证码前缀,用来区分不同验证码")
    private String verifyCodePrefix;
    @ApiModelProperty("验证码的值")
    private String verifyCodeValue;
    @ApiModelProperty("Token字符串")
    private String token;

    /** 构造方法 */
    public TokenVo() {}

    /** 构造方法 */
    public TokenVo(Member user) {
        super(user);
    }

    /** 构造方法 */
    public TokenVo(Member member, Set<String> roles, Set<String> permissions) {
        super(member, roles, permissions);
    }

    /** 获取 续期天数 */
    public Integer getDayGoOn() {
        return dayGoOn;
    }

    /** 设置 续期天数 */
    public void setDayGoOn(Integer dayGoOn) {
        this.dayGoOn = dayGoOn;
    }

    /** 获取角色ID */
    public Integer getRoleId() {
        return roleId;
    }

    /** 设置角色ID */
    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    /** 获取验证码前缀 */
    public String getVerifyCodePrefix() {
        return verifyCodePrefix;
    }

    /** 设置验证码前缀 */
    public void setVerifyCodePrefix(String verifyCodePrefix) {
        this.verifyCodePrefix = verifyCodePrefix;
    }

    /** 获取验证码的值 */
    public String getVerifyCodeValue() {
        return verifyCodeValue;
    }

    /** 设置验证码的值 */
    public void setVerifyCodeValue(String verifyCodeValue) {
        this.verifyCodeValue = verifyCodeValue;
    }

    /** 获取Token字符串 */
    public String getToken() {
        return token;
    }

    /** 设置Token字符串 */
    public void setToken(String token) {
        this.token = token;
    }

}